package zen2d.example.sanguo;

import zen2d.GraphicsContext;
import zen2d.Sprite;

import java.awt.*;

public class Attack extends Sprite {

    public Attack(int x, int y, int width, int height) {

        super(x, y, width, height);
    }
    public void show() {
        setLive(true);
    }

    @Override
    protected void afterEndLive() {

    }

    @Override
    protected void update() {

    }

    @Override
    protected void draw(GraphicsContext graphicsContext) {
        graphicsContext.setColor(Color.RED);
        graphicsContext.drawRect(x,y,width,height,false);
    }

    @Override
    protected void up() {

    }

    @Override
    protected void down() {

    }

    @Override
    protected void left() {

    }

    @Override
    protected void right() {

    }

    @Override
    protected void space() {

    }
}
